<?php
// +----------------------------------------------------------------------
// | ThinkPHP
// +----------------------------------------------------------------------
// | Copyright (c) 2008 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$

class TableModel extends CommonModel {
	protected $_validate = array(
        array('tbname','require','数据表名称必填'),
		array('tbname','','数据表名称重复','','unique'),
        array('tname','require','数据表说明名称必填'),
		array('tname','','数据表说明名称重复','','unique'),
		//还应加入排除系统保护的数据表
		
		);

	protected $_auto		=	array(
		/*array('create_time','time',self::MODEL_INSERT,'function'),
		array('update_time','time',self::MODEL_BOTH,'function'),*/
		);
}
?>